import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'

Vue.config.productionTip = false

// 配置请求的根路径，$http属于自定义变量
axios.defaults.baseURL = 'http://localhost:8080/'
Vue.prototype.$http = axios
axios.defaults.headers.post['Content-Type']='application/json'

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
